// pages/blog/blog.js
Page({

  onLoad: function (options) {
    const self = this;
    wx.request({
      url: 'https://news-at.zhihu.com/api/4/news/latest',
      success: res => {
        self.setData({
          dataSource: res.data.stories.map(item => {
            item.image = item.images[0]
            return item
          })
        })
        console.log(self.data.dataSource)
      }
    });
    
  }
})